package org.example.feign;

import org.example.error.RegisterError;
import org.example.pojo.Respond;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "AuthCentre",url = "http://localhost:8888",fallback = RegisterError.class)
@Component
public interface AuthFeign {
    @GetMapping("/auth/hasAuth")
    Respond<String> hasAuth(@RequestParam("router") String router,@RequestParam("token") String token);

}
